home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / despereaux-swings.swf / scripts / Box2D / Dynamics / Contacts / b2ContactConstraint.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  992 b   |  43 lines

  1. package Box2D.Dynamics.Contacts
  2. {
  3.    import Box2D.Collision.b2Manifold;
  4.    import Box2D.Common.Math.b2Vec2;
  5.    import Box2D.Common.b2Settings;
  6.    import Box2D.Dynamics.b2Body;
  7.    
  8.    public class b2ContactConstraint
  9.    {
  10.        
  11.       
  12.       public var points:Array;
  13.       
  14.       public var restitution:Number;
  15.       
  16.       public var body1:b2Body;
  17.       
  18.       public var manifold:b2Manifold;
  19.       
  20.       public var normal:b2Vec2;
  21.       
  22.       public var body2:b2Body;
  23.       
  24.       public var friction:Number;
  25.       
  26.       public var pointCount:int;
  27.       
  28.       public function b2ContactConstraint()
  29.       {
  30.          var _loc1_:int = 0;
  31.          normal = new b2Vec2();
  32.          super();
  33.          points = new Array(b2Settings.b2_maxManifoldPoints);
  34.          _loc1_ = 0;
  35.          while(_loc1_ < b2Settings.b2_maxManifoldPoints)
  36.          {
  37.             points[_loc1_] = new b2ContactConstraintPoint();
  38.             _loc1_++;
  39.          }
  40.       }
  41.    }
  42. }
  43.